<style>
    .ibox {
        clear: both;
        margin-bottom: 25px;
        margin-top: 0;
        padding: 0;
    }

    .mailbox-content {
        background: 0 0;
        border: none;
        padding: 10px;

    }

    .ibox-content {
        clear: both;
        color: inherit;
    }

    .file-manager {
        list-style: none outside none;
        margin: 0;
        padding: 0;
    }

    .space-25 {
        margin: 25px 0;
    }

    .file-manager h5 {
        text-transform: uppercase;
    }

    .ibox-content h1, .ibox-content h2, .ibox-content h3, .ibox-content h4, .ibox-content h5, .ibox-title h1, .ibox-title h2, .ibox-title h3, .ibox-title h4, .ibox-title h5 {
        margin-top: 5px;
    }

    h5 {
        font-size: 12px;
    }

    .h4, .h5, .h6, h4, h5, h6 {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .m-b-md {
        margin-bottom: 20px;
    }

    .folder-list li {
        border-bottom: 1px solid #e7eaec;
        display: block;
    }

    .folder-list li a {
        color: #666;
        display: block;
        padding: 8px 0;
    }

    h3, h4, h5 {
        font-weight: 600;
    }

    .folder-list li i {
        margin-right: 7px;
        color: #3d4d5d;
    }

    .badge-warning, .label-warning {
        background-color: #f8ac59;
        color: #FFF;
    }

    .label {
        background-color: #d1dade;
        color: #5e5e5e;
        font-size: 10px;
        font-weight: 600;
        padding: 3px 8px;
        text-shadow: none;
    }

    .pull-right {
        float: right !important;
    }

    ol, ul {
        margin-top: 0;
        margin-bottom: 10px;
    }

    .category-list li {
        display: block;
    }

    .category-list li a {
        color: #666;
        display: block;
        padding: 8px 0;
    }

    .category-list li a .text-navy {
        color: #1ab394;
    }

    .category-list li i {
        margin-right: 8px;
    }

    .file-manager h5.tag-title {
        margin-top: 20px;
    }

    ul.notes li, ul.tag-list li {
        list-style: none;
    }

    .mailbox-content .tag-list li a {
        background: #fff;
    }

    .tag-list li a {
        font-size: 10px;
        background-color: #f3f3f4;
        padding: 5px 12px;
        color: inherit;
        border-radius: 2px;
        border: 1px solid #e7eaec;
        margin-right: 5px;
        margin-top: 5px;
        display: block;
    }

    ul.notes li, ul.tag-list li {
        list-style: none;
    }

    .tag-list li {
        float: left;
    }

    .btn-white {
        color: inherit;
        background: #fff;
        border: 1px solid #e7eaec;
    }

    .btn {
        border-radius: 3px;
    }

    .mail-box-header {
        background-color: #fff;
        border: 1px solid #e7eaec;
        border-bottom: 0;
        padding: 30px 20px 20px;
    }

    .mail-box-header h2 {
        margin-top: 0;
    }

    .btn-group-sm > .btn, .btn-sm {
        padding: 5px 10px;
        font-size: 12px;
        line-height: 1.5;
        border-radius: 3px;
    }

    .btn-danger {
        background-color: #ed5565;
        border-color: #ed5565;
        color: #FFF;
    }

    .mail-box {
        background-color: #fff;
        border: 1px solid #e7eaec;
        border-top: 0;
        padding: 0;
        margin-bottom: 20px;
    }

    .mail-body {
        border-top: 1px solid #e7eaec;
        padding: 20px;
    }

    .mail-body .form-group {
        margin-bottom: 5px;
    }

    form-control, .single-line {
        background-color: #FFF;
        background-image: none;
        border: 1px solid #e5e6e7;
        border-radius: 1px;
        color: inherit;
        display: block;
        padding: 6px 12px;
        -webkit-transition: border-color .15s ease-in-out 0s, box-shadow .15s ease-in-out 0s;
        transition: border-color .15s ease-in-out 0s, box-shadow .15s ease-in-out 0s;
        width: 100%;
        font-size: 14px;
    }

    .mail-body {
        border-top: 1px solid #e7eaec;
        padding: 20px;
    }

    .text-right {
        text-align: right;
    }

    .btn-primary {
        background-color: #1ab394;
        border-color: #1ab394;
        color: #FFF;
    }

    .btn-white {
        color: inherit;
        background: #fff;
        border: 1px solid #e7eaec;
    }

    .btn-white {
        color: inherit;
        background: #fff;
        border: 1px solid #e7eaec;
    }

    .mail-text {
        border-top: 1px solid #e7eaec;
    }

    .h-200 {
        min-height: 200px;
    }
</style>
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-col-xs12 layui-col-md4">
            <div class="ibox float-e-margins">
                <div class="ibox-content mailbox-content">
                    <div class="file-manager">
                        <a class="layui-btn layui-btn-fluid" href="{:url('email/add')}">写信</a>
                        <div class="space-25"></div>
                        <h5>文件夹</h5>
                        <ul class="folder-list m-b-md" style="padding: 0">
                            <li>
                                <a href="#"><i class="layui-icon layui-icon-website"
                                               style="font-size: 12px;"></i>收件箱<span
                                        class="label label-warning pull-right">16</span>
                                </a>
                            </li>
                            <li>
                                <a href="#"><i class="layui-icon layui-icon-website"
                                               style="font-size: 12px;"></i>星标邮件<span
                                        class="label label-warning pull-right">16</span>
                                </a>
                            </li>
                            <li>
                                <a href="#"><i class="layui-icon layui-icon-website"
                                               style="font-size: 12px;"></i>重要<span
                                        class="label label-warning pull-right">16</span>
                                </a>
                            </li>
                            <li>
                                <a href="#"><i class="layui-icon layui-icon-website"
                                               style="font-size: 12px;"></i>草稿<span
                                        class="label label-warning pull-right">16</span>
                                </a>
                            </li>
                            <li>
                                <a href="#"><i class="layui-icon layui-icon-website"
                                               style="font-size: 12px;"></i>垃圾箱<span
                                        class="label label-warning pull-right">16</span>
                                </a>
                            </li>

                        </ul>
                        <h5>分类</h5>
                        <ul class="category-list" style="padding: 0">
                            <li>
                                <a href="#"> <i class="layui-icon layui-icon-circle-dot text-navy"
                                                style="font-size: 12px;"></i> 工作</a>
                            </li>
                            <li>
                                <a href="#"> <i class="layui-icon layui-icon-circle-dot text-navy"
                                                style="font-size: 12px;"></i> 文档</a>
                            </li>
                            <li>
                                <a href="#"> <i class="layui-icon layui-icon-circle-dot text-navy"
                                                style="font-size: 12px;"></i> 广告</a>
                            </li>
                            <li>
                                <a href="#"> <i class="layui-icon layui-icon-circle-dot text-navy"
                                                style="font-size: 12px;"></i> 社交</a>
                            </li>
                        </ul>
                        <h5 class="tag-title">标签</h5>
                        <ul class="tag-list" style="padding: 0">
                            <li><a href="#"><i class="layui-icon layui-icon-note" style="font-size: 12px;"></i> 朋友</a>
                            </li>
                            <li><a href="#"><i class="layui-icon layui-icon-note" style="font-size: 12px;"></i> 工作</a>
                            </li>
                            <li><a href="#"><i class="layui-icon layui-icon-note" style="font-size: 12px;"></i> 家庭</a>
                            </li>
                            <li><a href="#"><i class="layui-icon layui-icon-note" style="font-size: 12px;"></i> 孩子</a>
                            </li>
                            <li><a href="#"><i class="layui-icon layui-icon-note" style="font-size: 12px;"></i> 假期</a>
                            </li>
                            <li><a href="#"><i class="layui-icon layui-icon-note" style="font-size: 12px;"></i> 音乐</a>
                            </li>
                            <li><a href="#"><i class="layui-icon layui-icon-note" style="font-size: 12px;"></i> 照片</a>
                            </li>
                            <li><a href="#"><i class="layui-icon layui-icon-note" style="font-size: 12px;"></i> 电影</a>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-card-body layui-col-xs12 layui-col-md8">
            <div class="mail-box-header">
                <div class="pull-right tooltip-demo">
                    <a href="#" class="btn btn-white btn-sm" data-toggle="tooltip" data-placement="top"
                       title="存为草稿"><i class="fa fa-pencil"></i> 存为草稿</a>

                    <a href="#" class="btn btn-danger btn-sm" data-toggle="tooltip" data-placement="top"
                       title="放弃"><i class="fa fa-times"></i> 放弃</a>
                </div>
                <h2>写信</h2>
            </div>
            <div class="mail-box">
                <div class="mail-body">
                    <form class="form-horizontal" method="get">
                        <div class="layui-form-item">
                            <label class="layui-form-label">发送到</label>
                            <div class="layui-input-block">
                                <input type="text" name="name" required placeholder="" autocomplete="off"
                                       class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">主题</label>
                            <div class="layui-input-block">
                                <input type="text" name="name" required placeholder="" autocomplete="off"
                                       class="layui-input">
                            </div>
                        </div>
                    </form>

                </div>

                <div class="mail-text h-200">
                        我是编辑器
                </div>
                <div class="clearfix"></div>
            </div>
            <div class="mail-body text-right tooltip-demo">
                <a href="#" class="btn btn-sm btn-primary" data-toggle="tooltip" data-placement="top"
                   title="" data-original-title="Send"><i class="fa fa-reply"></i> 发送</a>
                <a href="#" class="btn btn-white btn-sm" data-toggle="tooltip" data-placement="top" title=""
                   data-original-title="Discard email"><i class="fa fa-times"></i> 放弃</a>
                <a href="#" class="btn btn-white btn-sm" data-toggle="tooltip" data-placement="top" title=""
                   data-original-title="Move to draft folder"><i class="fa fa-pencil"></i> 存为草稿</a>
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
</div>
</div>

<script src="/static/layuiadmin/layui/layui.js"></script>
<script>
    layui.config({
        base: '/static/layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'table', 'soulTable', 'laydate'], function () {
        var $ = layui.$
            , form = layui.form
            , table = layui.table, soulTable = layui.soulTable, laydate = layui.laydate;

    });
</script>
